package Day12.成员方法;

public class Demo07 {
    public static void main(String[] args) {
        AA2 aa=new AA2();
        aa.swap(2,5);
    }
}
class AA2{
    public void swap(int a,int b){
        int tmp=a;
        a=b;
        b=tmp;
        System.out.println("a="+a+" b="+b);
    }
}